package com.scs.application.modules.device.service;

import com.scs.application.core.service.IBaseService;
import com.scs.application.modules.device.entity.*;
import com.scs.application.modules.sys.entity.FlowButton;

import java.util.List;

/**
 *  设备台账 服务类
 */

public interface DeviceLedgerService extends IBaseService<DeviceLedger> {
    void lockBatch(List<String> idList, String lockInfo);

    void unlockBatch(List<String> idList);

    DeviceLedger getByDeviceSn(String deviceSn);

    // 根据工作记录调拨资产信息
    void transferByDeviceWork(List<DeviceWorkItem> childList, DeviceWork work, FlowButton button);

    // 根据租赁信息调整设备状态
    void transferByCirculate(List<DeviceCirculateItem> childList, DeviceCirculate work, FlowButton button);
}